Facebook on Tuesday agreed to overhaul its lucrative targeted advertising system to settle accusations that landlords, lenders and employers use the platform to discriminate. The far-reaching settlement compels Facebook to withhold a wide array of detailed demographic information — including Zip codes, gender and age — from advertisers when they market housing, credit and job opportunities.